package cn.edu.xyc.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "xy_info")
public class EntityPojo implements java.io.Serializable {

    @Override
    public String toString() {
	return "EntityPojo [comanyname=" + comanyname + ", name=" + name
		+ ", idcard=" + idcard + ", money=" + money + ", count="
		+ count + "]";
    }

    /**
	 * 
	 */
    private static final long serialVersionUID = 1L;

    private String comanyname;
    private String name;

    private String idcard;

    private String money;

    private String count;

    public EntityPojo() {
	super();
    }

    public EntityPojo(String comanyname, String name, String idcard,
	    String money, String count) {
	super();
	this.comanyname = comanyname;
	this.name = name;
	this.idcard = idcard;
	this.money = money;
	this.count = count;
    }

    @Column(name = "xy_companyname", length = 255)
    public String getComanyname() {
	return comanyname;
    }

    public void setComanyname(String comanyname) {
	this.comanyname = comanyname;
    }

    @Column(name = "xy_username", length = 30, nullable = false)
    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    @Id
    @Column(name = "xy_idcard", length = 50)
    public String getIdcard() {
	return idcard;
    }

    public void setIdcard(String idcard) {
	this.idcard = idcard;
    }

    @Column(name = "xy_money")
    public String getMoney() {
	return money;
    }

    public void setMoney(String money) {
	this.money = money;
    }

    @Column(name = "xy_count")
    public String getCount() {
	return count;
    }

    public void setCount(String count) {
	this.count = count;
    }
}
